package file;

/**
 * 文件管理表 file_file
 * 
 * @author Rczs
 * @date 2019-03-22
 */
public class FileFile extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	
	/** 文件id */
	private Integer fileId;
	/** 文件显示名 */
	private String name;
	/** 文件父级目录 */
	private Integer parentId;
	/** 文件业务类型 */
	private String type;
	/** 文件url */
	private String url;
	/** 是否是目录 */
	private Boolean isDir;
	/** 文件扩展名 */
	private String extend;

	public void setFileId(Integer fileId) 
	{
		this.fileId = fileId;
	}

	public Integer getFileId() 
	{
		return fileId;
	}
	public void setName(String name) 
	{
		this.name = name;
	}

	public String getName() 
	{
		return name;
	}
	public void setParentId(Integer parentId) 
	{
		this.parentId = parentId;
	}

	public Integer getParentId() 
	{
		return parentId;
	}
	public void setType(String type) 
	{
		this.type = type;
	}

	public String getType() 
	{
		return type;
	}
	public void setUrl(String url) 
	{
		this.url = url;
	}

	public String getUrl() 
	{
		return url;
	}
	public void setIsDir(Boolean isDir) 
	{
		this.isDir = isDir;
	}

	public Boolean getIsDir() 
	{
		return isDir;
	}
	public void setExtend(String extend) 
	{
		this.extend = extend;
	}

	public String getExtend() 
	{
		return extend;
	}

	public FileFile(Integer fileId, String name, Integer parentId, String type, String url, Boolean isDir, String extend)
	{
		this.fileId = fileId;
		this.name = name;
		this.parentId = parentId;
		this.type = type;
		this.url = url;
		this.isDir = isDir;
		this.extend = extend;
	}

	@Override
	public String toString()
	{
		return "FileFile{" +
				"fileId=" + fileId +
				", name='" + name + '\'' +
				", parentId=" + parentId +
				", type='" + type + '\'' +
				", url='" + url + '\'' +
				", isDir=" + isDir +
				", extend='" + extend + '\'' +
				'}';
	}
}
